<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>7.1.2 P69 动态数据</title>
</head>
<body>
<div id="app">
    <my-component></my-component>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script>
    Vue.component('my-component',
        {
            template:'<div>{{message}}</div>',
            data:function(){
                return{
                    message:'组件内容'
                }
            }
        });
    var app = new Vue({
        el:'#app'
    })
</script>
</body>
</html>